# Contributor: Robin Candau <robincandau@protonmail.com>
# Maintainer: Robin Candau <robincandau@protonmail.com>
pkgname=timeshift
pkgver=24.01.1
pkgrel=0
pkgdesc="A system restore utility for Linux"
url="https://github.com/linuxmint/timeshift"
arch="all"
license="GPL-2.0-or-later"
depends="rsync cronie which xhost"
makedepends="help2man meson vala gtk+3.0-dev json-glib-dev vte3-dev libgee-dev xapp-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/timeshift/archive/refs/tags/$pkgver.tar.gz"

build() {
	meson setup --prefix=/usr --buildtype=plain "$srcdir/$pkgname-$pkgver" build
	meson compile -C build
}

check() {
	meson test -C build
}

package() {
	meson install -C build --destdir "$pkgdir"
}

sha512sums="
9a370f62a07912cc73cff981c87f56ba14b4179890d4b7293866a5c72b8611b6490def4ffee0ea7fc6c3424f581e2adc08d456d9341a2ae8a87241d2f2c871e1  timeshift-24.01.1.tar.gz
"
